package com.android.bonn.fast.paginate;

import androidx.recyclerview.widget.RecyclerView;


public abstract class Paginate {

    public interface Callbacks {

        void onLoadMore();


        boolean isLoading();


        boolean hasNextPage();
    }


    abstract public void setHasMoreDataToLoad(boolean hasMoreDataToLoad);


    abstract public void unbind();


    public static RecyclerPaginate.Builder with(RecyclerView recyclerView, Callbacks callback) {
        return new RecyclerPaginate.Builder(recyclerView, callback);
    }

}